/**
 * Created with IntelliJ IDEA.
 * User: Eliseo
 * Date: 29.10.13
 * Time: 18:49
 */
public class Interval {
    int i = 0;

    long m_start = System.currentTimeMillis();

    public long value() {
        return System.currentTimeMillis() - m_start;
    }

    public void reset() {
        m_start = System.currentTimeMillis();
    }

    public void doStuff(){
        doStuffMitZaehler(i);
        i++;

    }

    private void doStuffMitZaehler(int i) {
        System.out.println("ich wurde zum" + i +"ausgeführt");
    }
}
